package com.dgut.autoconfig;

import org.omg.CORBA.PUBLIC_MEMBER;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


public class Event {
    public static class NoticeEvent extends ApplicationEvent {
        private static final Logger logger = LoggerFactory.getLogger(NoticeEvent.class);
        private final String message;

        public NoticeEvent(String message) {
            super(message);
            this.message = message;
            logger.info("事件添加成功! message {}" + message);
        }

        public String getMessage() {
            return message;
        }
    }

}

